#include <iostream>
using namespace std;

int main() {
  string s;
  cin >> s;
  int length = s.length();
  for(int i = length - 1; i >=0; i--) {
    cout << s[i];
  }
  cout << endl;

  return 0;
}